<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">

<title>module Comparable - RDoc Documentation</title>


<script src="./js/navigation.js" defer></script>
<script src="./js/search.js" defer></script>
<script src="./js/search_index.js" defer></script>
<script src="./js/searcher.js" defer></script>
<script src="./js/darkfish.js" defer></script>

<script src="./js/jquery-3.2.0.min.js"></script>

<script src="./js/vue.min.js"></script>
<script src="./js/js.cookie.min.js"></script>

<link href="./css/fonts.css" rel="stylesheet">
<link id='rdoccss' href="./css/rdoc.css" rel="stylesheet">
<link href="./css/carbon17.css" rel="stylesheet">

<script type="text/javascript">
  var rdoc_rel_prefix = "./";
  var index_rel_prefix = "./";
  var darkModeCsseHref = "./css/rdoc-dm.css"
  var defaultModeCssHref = "./css/rdoc.css"
  // var cssDarkmode = Cookies.get('darkmode');
  
  if( Cookies.get("darkmode") == "true") {
	$('#rdoccss').attr("href", darkModeCsseHref);
}

//  https://cssdeck.com/blog/simple-jquery-stylesheet-switcher/

document.write('<style type="text/css">body{display:none}</style>');

</script>


</head>
<body id="top" role="document" class="module">
  <!-- this is class.html -->

  <div id='actionbar' >
    <div class='wrapper mdiv'>
      <ul class='grids g0'></ul>
    </div> 
    <!-- VERSION HEADER for 3.3.0-preview2 NOT FOUND -->
  </div> <!-- end action bar -->

  <div class='wrapper hdiv'>

    


    <nav id='vapp' role="navigation">
    <div id="project-navigation">
      <div id="home-section" role="region" title="Quick navigation" class="nav-section">
  <h2><a href="./index.html" rel="home">Home</a></h2>

  <div id="table-of-contents-navigation"  >
    <a href="./table_of_contents.html#pages">Pages</a>
    <a href="./table_of_contents.html#classes">Classes</a>
    <a href="./table_of_contents.html#methods">Methods</a>
  </div>
</div>

      <div id="search-section" role="search" class="project-section initially-hidden">
  <form action="#" method="get" accept-charset="utf-8">
    <div id="search-field-wrapper">
      <input id="search-field" role="combobox" aria-label="Search"
             aria-autocomplete="list" aria-controls="search-results"
             type="text" name="search" placeholder="Search" spellcheck="false"
             title="Type to search, Up and Down to navigate, Enter to load">
    </div>

    <ul id="search-results" aria-label="Search Results"
        aria-busy="false" aria-expanded="false"
        aria-atomic="false" class="initially-hidden"></ul>
  </form>
</div>

    </div>


    

    <button id='toggleThing' @click="toggleNav()" >Show/hide navigation</button>
    <div :class="isOpen ? 'block' : 'hidden' " id='toggleMe'>
      <div id="class-metadata">
        
        
        
        
        
<!-- Method Quickref -->
<div id="method-list-section" class="nav-section">
  <h3>Methods</h3>

  <ul class="link-list" role="directory">
    <li ><a href="#method-i-3C">#&lt;</a>
    <li ><a href="#method-i-3C-3D">#&lt;=</a>
    <li ><a href="#method-i-3D-3D">#==</a>
    <li ><a href="#method-i-3E">#&gt;</a>
    <li ><a href="#method-i-3E-3D">#&gt;=</a>
    <li ><a href="#method-i-between-3F">#between?</a>
    <li ><a href="#method-i-clamp">#clamp</a>
  </ul>
</div>

      </div>
     </div>
    </nav>


    <div id='extraz'><div class='adzbox-index'  >
      
     </div>         
    </div>

    <main role="main" aria-labelledby="module-Comparable">
    <h1 id="module-Comparable" class="module">
      module Comparable
    </h1>

    <section class="description">
    
<p>The <a href="Comparable.html"><code>Comparable</code></a> mixin is used by classes whose objects may be ordered. The class must define the <code>&lt;=&gt;</code> operator, which compares the receiver against another object, returning a value less than 0, returning 0, or returning a value greater than 0, depending on whether the receiver is less than, equal to, or greater than the other object. If the other object is not comparable then the <code>&lt;=&gt;</code> operator should return <code>nil</code>. <a href="Comparable.html"><code>Comparable</code></a> uses <code>&lt;=&gt;</code> to implement the conventional comparison operators (<code>&lt;</code>, <code>&lt;=</code>, <code>==</code>, <code>&gt;=</code>, and <code>&gt;</code>) and the method <code>between?</code>.</p>

<pre class="ruby"><span class="ruby-keyword">class</span> <span class="ruby-constant">SizeMatters</span>
  <span class="ruby-identifier">include</span> <span class="ruby-constant">Comparable</span>
  <span class="ruby-identifier">attr</span> <span class="ruby-value">:str</span>
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">&lt;=&gt;</span>(<span class="ruby-identifier">other</span>)
    <span class="ruby-identifier">str</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">&lt;=&gt;</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">str</span>.<span class="ruby-identifier">size</span>
  <span class="ruby-keyword">end</span>
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">initialize</span>(<span class="ruby-identifier">str</span>)
    <span class="ruby-ivar">@str</span> = <span class="ruby-identifier">str</span>
  <span class="ruby-keyword">end</span>
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">inspect</span>
    <span class="ruby-ivar">@str</span>
  <span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span>

<span class="ruby-identifier">s1</span> = <span class="ruby-constant">SizeMatters</span>.<span class="ruby-identifier">new</span>(<span class="ruby-string">&quot;Z&quot;</span>)
<span class="ruby-identifier">s2</span> = <span class="ruby-constant">SizeMatters</span>.<span class="ruby-identifier">new</span>(<span class="ruby-string">&quot;YY&quot;</span>)
<span class="ruby-identifier">s3</span> = <span class="ruby-constant">SizeMatters</span>.<span class="ruby-identifier">new</span>(<span class="ruby-string">&quot;XXX&quot;</span>)
<span class="ruby-identifier">s4</span> = <span class="ruby-constant">SizeMatters</span>.<span class="ruby-identifier">new</span>(<span class="ruby-string">&quot;WWWW&quot;</span>)
<span class="ruby-identifier">s5</span> = <span class="ruby-constant">SizeMatters</span>.<span class="ruby-identifier">new</span>(<span class="ruby-string">&quot;VVVVV&quot;</span>)

<span class="ruby-identifier">s1</span> <span class="ruby-operator">&lt;</span> <span class="ruby-identifier">s2</span>                       <span class="ruby-comment">#=&gt; true</span>
<span class="ruby-identifier">s4</span>.<span class="ruby-identifier">between?</span>(<span class="ruby-identifier">s1</span>, <span class="ruby-identifier">s3</span>)           <span class="ruby-comment">#=&gt; false</span>
<span class="ruby-identifier">s4</span>.<span class="ruby-identifier">between?</span>(<span class="ruby-identifier">s3</span>, <span class="ruby-identifier">s5</span>)           <span class="ruby-comment">#=&gt; true</span>
[ <span class="ruby-identifier">s3</span>, <span class="ruby-identifier">s2</span>, <span class="ruby-identifier">s5</span>, <span class="ruby-identifier">s4</span>, <span class="ruby-identifier">s1</span> ].<span class="ruby-identifier">sort</span>   <span class="ruby-comment">#=&gt; [Z, YY, XXX, WWWW, VVVVV]</span>
</pre>

<h2 id="module-Comparable-label-What-27s+Here">What’s Here<span><a href="#module-Comparable-label-What-27s+Here">&para;</a> <a href="#top">&uarr;</a></span></h2>

<p>Module Comparable provides these methods, all of which use method <code>&lt;=&gt;</code>:</p>
<ul><li>
<p>#&lt;: Returns whether <code>self</code> is less than the given object.</p>
</li><li>
<p>#&lt;=: Returns whether <code>self</code> is less than or equal to the given object.</p>
</li><li>
<p><a href="Comparable.html#method-i-3D-3D"><code>==</code></a>: Returns whether <code>self</code> is equal to the given object.</p>
</li><li>
<p>#&gt;: Returns whether <code>self</code> is greater than the given object.</p>
</li><li>
<p>#&gt;=: Returns whether <code>self</code> is greater than or equal to the given object.</p>
</li><li>
<p><a href="Comparable.html#method-i-between-3F"><code>between?</code></a>: Returns <code>true</code> if <code>self</code> is between two given objects.</p>
</li><li>
<p><a href="Comparable.html#method-i-clamp"><code>clamp</code></a>: For given objects <code>min</code> and <code>max</code>, or range <code>(min..max)</code>, returns:</p>
<ul><li>
<p><code>min</code> if <code>(self &lt;=&gt; min) &lt; 0</code>.</p>
</li><li>
<p><code>max</code> if <code>(self &lt;=&gt; max) &gt; 0</code>.</p>
</li><li>
<p><code>self</code> otherwise.</p>
</li></ul>
</li></ul>

    </section>

      <section id="5Buntitled-5D" class="documentation-section">





                <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
                <header>
                <h3>Public Instance Methods</h3>
                </header>

                  <div id="method-i-3C" class="method-detail ">
                      <div class="method-heading">
                        <span class="method-callseq">
                          obj &lt; other    &rarr; true or false
                              </span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              <p>Compares two objects based on the receiver’s <code>&lt;=&gt;</code> method, returning true if it returns a value less than 0.</p>

                              <div class="method-source-code" id="3C-source">
            <pre>static VALUE
cmp_lt(VALUE x, VALUE y)
{
    return RBOOL(cmpint(x, y) &lt; 0);
}</pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-3C-3D" class="method-detail ">
                      <div class="method-heading">
                        <span class="method-callseq">
                          obj &lt;= other    &rarr; true or false
                              </span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              <p>Compares two objects based on the receiver’s <code>&lt;=&gt;</code> method, returning true if it returns a value less than or equal to 0.</p>

                              <div class="method-source-code" id="3C-3D-source">
            <pre>static VALUE
cmp_le(VALUE x, VALUE y)
{
    return RBOOL(cmpint(x, y) &lt;= 0);
}</pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-3D-3D" class="method-detail ">
                      <div class="method-heading">
                        <span class="method-callseq">
                          obj == other    &rarr; true or false
                              </span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              <p>Compares two objects based on the receiver’s <code>&lt;=&gt;</code> method, returning true if it returns 0. Also returns true if <em>obj</em> and <em>other</em> are the same object.</p>

                              <div class="method-source-code" id="3D-3D-source">
            <pre>static VALUE
cmp_equal(VALUE x, VALUE y)
{
    VALUE c;
    if (x == y) return Qtrue;

    c = rb_exec_recursive_paired_outer(cmp_eq_recursive, x, y, y);

    if (NIL_P(c)) return Qfalse;
    return RBOOL(rb_cmpint(c, x, y) == 0);
}</pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-3E" class="method-detail ">
                      <div class="method-heading">
                        <span class="method-callseq">
                          obj &gt; other    &rarr; true or false
                              </span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              <p>Compares two objects based on the receiver’s <code>&lt;=&gt;</code> method, returning true if it returns a value greater than 0.</p>

                              <div class="method-source-code" id="3E-source">
            <pre>static VALUE
cmp_gt(VALUE x, VALUE y)
{
    return RBOOL(cmpint(x, y) &gt; 0);
}</pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-3E-3D" class="method-detail ">
                      <div class="method-heading">
                        <span class="method-callseq">
                          obj &gt;= other    &rarr; true or false
                              </span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              <p>Compares two objects based on the receiver’s <code>&lt;=&gt;</code> method, returning true if it returns a value greater than or equal to 0.</p>

                              <div class="method-source-code" id="3E-3D-source">
            <pre>static VALUE
cmp_ge(VALUE x, VALUE y)
{
    return RBOOL(cmpint(x, y) &gt;= 0);
}</pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-between-3F" class="method-detail ">
                      <div class="method-heading">
                        <span class="method-callseq">
                          between?(min, max)    &rarr; true or false
                              </span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              <p>Returns <code>false</code> if <em>obj</em> <code>&lt;=&gt;</code> <em>min</em> is less than zero or if <em>obj</em> <code>&lt;=&gt;</code> <em>max</em> is greater than zero, <code>true</code> otherwise.</p>

<pre class="ruby"><span class="ruby-value">3</span>.<span class="ruby-identifier">between?</span>(<span class="ruby-value">1</span>, <span class="ruby-value">5</span>)               <span class="ruby-comment">#=&gt; true</span>
<span class="ruby-value">6</span>.<span class="ruby-identifier">between?</span>(<span class="ruby-value">1</span>, <span class="ruby-value">5</span>)               <span class="ruby-comment">#=&gt; false</span>
<span class="ruby-string">&#39;cat&#39;</span>.<span class="ruby-identifier">between?</span>(<span class="ruby-string">&#39;ant&#39;</span>, <span class="ruby-string">&#39;dog&#39;</span>)   <span class="ruby-comment">#=&gt; true</span>
<span class="ruby-string">&#39;gnu&#39;</span>.<span class="ruby-identifier">between?</span>(<span class="ruby-string">&#39;ant&#39;</span>, <span class="ruby-string">&#39;dog&#39;</span>)   <span class="ruby-comment">#=&gt; false</span>
</pre>

                              <div class="method-source-code" id="between-3F-source">
            <pre>static VALUE
cmp_between(VALUE x, VALUE min, VALUE max)
{
    return RBOOL((cmpint(x, min) &gt;= 0 &amp;&amp; cmpint(x, max) &lt;= 0));
}</pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-clamp" class="method-detail ">
                      <div class="method-heading">
                        <span class="method-callseq">
                          clamp(min, max) &rarr;  obj
                              </span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>
                      <div class="method-heading">
                        <span class="method-callseq">
                          clamp(range)    &rarr;  obj
                              </span>
                            </div>

                            <div class="method-description">
                              <p>In <code>(min, max)</code> form, returns <em>min</em> if <em>obj</em> <code>&lt;=&gt;</code> <em>min</em> is less than zero, <em>max</em> if <em>obj</em> <code>&lt;=&gt;</code> <em>max</em> is greater than zero, and <em>obj</em> otherwise.</p>

<pre class="ruby"><span class="ruby-value">12</span>.<span class="ruby-identifier">clamp</span>(<span class="ruby-value">0</span>, <span class="ruby-value">100</span>)         <span class="ruby-comment">#=&gt; 12</span>
<span class="ruby-value">523</span>.<span class="ruby-identifier">clamp</span>(<span class="ruby-value">0</span>, <span class="ruby-value">100</span>)        <span class="ruby-comment">#=&gt; 100</span>
<span class="ruby-value">-3.123</span>.<span class="ruby-identifier">clamp</span>(<span class="ruby-value">0</span>, <span class="ruby-value">100</span>)     <span class="ruby-comment">#=&gt; 0</span>

<span class="ruby-string">&#39;d&#39;</span>.<span class="ruby-identifier">clamp</span>(<span class="ruby-string">&#39;a&#39;</span>, <span class="ruby-string">&#39;f&#39;</span>)      <span class="ruby-comment">#=&gt; &#39;d&#39;</span>
<span class="ruby-string">&#39;z&#39;</span>.<span class="ruby-identifier">clamp</span>(<span class="ruby-string">&#39;a&#39;</span>, <span class="ruby-string">&#39;f&#39;</span>)      <span class="ruby-comment">#=&gt; &#39;f&#39;</span>
</pre>

<p>In <code>(range)</code> form, returns <em>range.begin</em> if <em>obj</em> <code>&lt;=&gt;</code> <em>range.begin</em> is less than zero, <em>range.end</em> if <em>obj</em> <code>&lt;=&gt;</code> <em>range.end</em> is greater than zero, and <em>obj</em> otherwise.</p>

<pre class="ruby"><span class="ruby-value">12</span>.<span class="ruby-identifier">clamp</span>(<span class="ruby-value">0</span><span class="ruby-operator">..</span><span class="ruby-value">100</span>)         <span class="ruby-comment">#=&gt; 12</span>
<span class="ruby-value">523</span>.<span class="ruby-identifier">clamp</span>(<span class="ruby-value">0</span><span class="ruby-operator">..</span><span class="ruby-value">100</span>)        <span class="ruby-comment">#=&gt; 100</span>
<span class="ruby-value">-3.123</span>.<span class="ruby-identifier">clamp</span>(<span class="ruby-value">0</span><span class="ruby-operator">..</span><span class="ruby-value">100</span>)     <span class="ruby-comment">#=&gt; 0</span>

<span class="ruby-string">&#39;d&#39;</span>.<span class="ruby-identifier">clamp</span>(<span class="ruby-string">&#39;a&#39;</span><span class="ruby-operator">..</span><span class="ruby-string">&#39;f&#39;</span>)      <span class="ruby-comment">#=&gt; &#39;d&#39;</span>
<span class="ruby-string">&#39;z&#39;</span>.<span class="ruby-identifier">clamp</span>(<span class="ruby-string">&#39;a&#39;</span><span class="ruby-operator">..</span><span class="ruby-string">&#39;f&#39;</span>)      <span class="ruby-comment">#=&gt; &#39;f&#39;</span>
</pre>

<p>If <em>range.begin</em> is <code>nil</code>, it is considered smaller than <em>obj</em>, and if <em>range.end</em> is <code>nil</code>, it is considered greater than <em>obj</em>.</p>

<pre class="ruby"><span class="ruby-value">-20</span>.<span class="ruby-identifier">clamp</span>(<span class="ruby-value">0</span><span class="ruby-operator">..</span>)           <span class="ruby-comment">#=&gt; 0</span>
<span class="ruby-value">523</span>.<span class="ruby-identifier">clamp</span>(<span class="ruby-operator">..</span><span class="ruby-value">100</span>)         <span class="ruby-comment">#=&gt; 100</span>
</pre>

<p>When <em>range.end</em> is excluded and not <code>nil</code>, an exception is raised.</p>

<pre class="ruby"><span class="ruby-value">100</span>.<span class="ruby-identifier">clamp</span>(<span class="ruby-value">0</span><span class="ruby-operator">...</span><span class="ruby-value">100</span>)       <span class="ruby-comment"># ArgumentError</span>
</pre>

                              <div class="method-source-code" id="clamp-source">
            <pre>static VALUE
cmp_clamp(int argc, VALUE *argv, VALUE x)
{
    VALUE min, max;
    int c, excl = 0;

    if (rb_scan_args(argc, argv, &quot;11&quot;, &amp;min, &amp;max) == 1) {
        VALUE range = min;
        if (!rb_range_values(range, &amp;min, &amp;max, &amp;excl)) {
            rb_raise(rb_eTypeError, &quot;wrong argument type %s (expected Range)&quot;,
                     rb_builtin_class_name(range));
        }
        if (!NIL_P(max)) {
            if (excl) rb_raise(rb_eArgError, &quot;cannot clamp with an exclusive range&quot;);
        }
    }
    if (!NIL_P(min) &amp;&amp; !NIL_P(max) &amp;&amp; cmpint(min, max) &gt; 0) {
        rb_raise(rb_eArgError, &quot;min argument must be less than or equal to max argument&quot;);
    }

    if (!NIL_P(min)) {
        c = cmpint(x, min);
        if (c == 0) return x;
        if (c &lt; 0) return min;
    }
    if (!NIL_P(max)) {
        c = cmpint(x, max);
        if (c &gt; 0) return max;
    }
    return x;
}</pre>
                              </div>
                            </div>


                          </div>

                          </section>

              </section>
              </main>



            </div>  <!--  class='wrapper hdiv' -->


<footer id="validator-badges" role="contentinfo">
<p><a href="https://validator.w3.org/check/referer">Validate</a></p>
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.4.0.</p>
<p>Based on <a href="https://github.com/ged/darkfish/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.</p>

  
    <p><p><a href="https://ruby-doc.org">Ruby-doc.org</a> is provided by <a href="https://jamesbritt.com">James Britt</a> and <a href="https://neurogami.com">Neurogami</a>. </p><p><a href="https://jamesbritt.bandcamp.com/">Hack your world.  Feed your head.  Live curious</a>.</p>
</p>
  
  </footer>

<script type="text/javascript">


  let ads  = $("#carbonads-container").children().detach();


  function swapMode() {
    var cookieName = 'darkmode';
    var cssDarkmode = Cookies.get(cookieName);
    console.log("***** swapMode! " + cssDarkmode + " *****");


    if (cssDarkmode == "true") {
      console.log("We have dark mode, set the css to light ...");
      $('#rdoccss').attr("href", defaultModeCssHref);
      $('#cssSelect').text("Dark mode");
      cssDarkmode = "false";
      console.log("swapMode! Now set cookie to " + cssDarkmode);
      Cookies.set(cookieName, cssDarkmode);

    } else {
      console.log("We not have dark mode, set the css to dark ...");
      $('#rdoccss').attr("href", darkModeCsseHref);
      $('#cssSelect').text("Light mode");
      cssDarkmode = "true";
      console.log("swapMode! Now set cookie to " + cssDarkmode);
      Cookies.set(cookieName, cssDarkmode);

    }

    console.log("  --------------- ");
  }


const vueCssApp = new Vue({
el: '#menubar',
data: {
isDark: false
},
methods: {
toggleClass: function(event){
this.isDark = !this.isDark;
}
}
})

const vueApp = new Vue({
el: '#vapp',
data: { 
isOpen: true
},

mounted() {
this.handleResize();
this.manage_mob_classes();
window.addEventListener('resize', this.handleResize)
//this.isOpen !=  (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent));
},
destroyed() {
window.removeEventListener('resize', this.handleResize)
},
created() {
//manage_mob_classes();
},

methods : {
isMobile() {
  return (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent));
},

  handleResize() {
    if (!this.isMobile()) {
      this.isOpen = window.innerWidth > 800;
    }
  },

  manage_mob_classes() {
    if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
      $("nav").addClass("mob_nav");
      $("main").addClass("mob_main");
      $("#extraz").addClass("mob_extraz");
      $("#carbonads-container").addClass("mob_carbonads-container");
      this.isOpen  = false;
    } else {
      $("nav").removeClass("mob_nav") 
        $("main").removeClass("mob_main");
      $("#extraz").removeClass("mob_extraz");
      $("#carbonads-container").removeClass("mob_carbonads-container");
      this.isOpen  = true;
    }
  },

  toggleNav() {
    this.isOpen =! this.isOpen ;
    // alert("Toggle nav!");
    console.log("toggleNav() click: " + this.isOpen );
  }
}
})

$("#carbonads-container").append(ads);


$(function() {

    var darkmode = Cookies.get("darkmode");
    console.log("Document ready: " + darkmode);

    if ( darkmode  == "true" ) {
      $('#cssSelect').text("Light mode");
    } else {
      $('#cssSelect').text("Dark mode");
     }

    $('body').css('display','block');
    });

</script>

    
  </body> 
</html>

